<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ include file="/WEB-INF/jsp/common/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>cyclemap</title>
</head>
<body>
	<c:forEach items="${list}" var="map">
lock
		<c:forEach items="${map}" var="i">
			<br>
			<c:out value="${i.value}" />
			<!-- 这是循环所有 -->

		</c:forEach>
${map['name']}
	</c:forEach>
	<hr>
	<c:forEach items="${list2}" var="map3">
lock
<c:forEach items="${map3}" var="i">
			<br>${map3['sum_pcost']} --要用单引号 | ${i.value }--要循环的话一定要将 $ {map}放入 items里，没放但单独拿值都可以是因为拿了list的var来使用
		</c:forEach>
		<!-- 取某一个值 -->
		<br>${map3['name']}
		<br>
lock1
	</c:forEach>
	${map3['name']} ${long['name'] }
<c:set value="${index}"  var="index" /> 
<c:set value="${fn:length(list3)}" var="end"/>

${end }
<select name="">
<c:forEach items="${list3}" varStatus="i" var="key" begin="0" end="${end}" >
<option value="${key}" <c:if test="${key==index }">selected</c:if> >${key}</option>
</c:forEach>

</select>

<button onclick="EnumaKey()">key</button>
<button onclick="EnumaProperty()">value</button>
<script type="text/javascript">
var smsTypeDesc = {"4":"回访短信","3":"邮件短信","aa":"测试短信"};
function EnumaKey(){  
    for(var key in smsTypeDesc){  
        alert(key);  
    }  
}  

function EnumaProperty(){  
    for(var property in smsTypeDesc){  
        alert(smsTypeDesc[property]);  
    }  
} 
</script>
</body>
</html>